package com.ruoyi.teacher.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.teacher.domain.Label;
import com.ruoyi.teacher.domain.Type;
import com.ruoyi.teacher.mapper.LabelRepository;
import com.ruoyi.teacher.service.LabelServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabelServieImpl implements LabelServie {


    @Autowired
    private LabelRepository labelRepository;

    @Override
    public List<Label> getList() {
        List<Label> all = labelRepository.findAll();
        return all;
    }
}
